<h1>Login</h1>

<%# flash[:notice]= "test flash notice" %>
<%= error_messages_for :user %>
<% form_for @user, :url=>{:action=>:sidecheck} do |f|%>
  <p>user name:
     <%= f.text_field :name %>
  <p>password  :
     <%= f.password_field :password %>
</p>
     <p>
     <%= f.submit "login" %>
     <%= f.submit "register" %>
     </p>
     <%end%>
     
     <% form_for @user, :url=>{:action=>:create} do |f|%>
  <p>user name:
     <%= f.text_field :name %>
  <p>password  :
     <%= f.password_field :password %>
</p>
     <p>
     <%= f.submit "register" %>
     </p>
     <%end%>
     <% form_for @user, :url=>{:action=>:login} do |f|%>
  <p>user name:
     <%= f.text_field :name %>
  <p>password  :
     <%= f.password_field :password %>
</p>
     <p>
     <%= f.submit "login" %>
    
     </p>
  
<%end%>
